﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Web.Controls
{
    [Serializable]
    public class ScrollY : Feature<int>
    {
        public bool ScrollCollapse { get; set; }

        public ScrollY()
        {

        }

        public override string ToString()
        {
            string retValue = string.Empty;

            retValue = string.Format("\"scrollY\": {0}\n", this.Value.ToString().ToLower());

            if (this.Value > 0)
            {
                retValue += string.Format(",\"scrollCollapse\": {0}", this.ScrollCollapse.ToString().ToLower());
            }

            return retValue;
        }
    }
}
